home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Skunkware 5
/
Skunkware 5.iso
/
src
/
X11
/
wais
/
waisgate
/
Imakefile
< prev
next >
Wrap
Makefile
|
1995-05-09
|
3KB
|
104 lines
# Common Makefile for WWW httpd (includes WAIS Gateway)
# -------------------------------------------------
#
# A Makefile in a subdirectory for the machine in question contains
# the necessary definitions of directories etc.
#
# (c) CERN 1990, 1991 -- see Copyright.html for conditions
#
# make Compile and link the daemon (private version)
# make install Copy it into the system (implies make)
# make clean Remove intermediate files
# make cleanall Remove intremediate files and products
# make httpd as make
#______________________________________________________________________
#
# M000, 24-May-93, hess
# write for imake, add install rule
# Where to install binary and config file.
LOCALETC=/usr/local/etc
CDEBUGFLAGS = -Olegitc
CDEBUGFLAGS =
DEFINES= -Dsco \
-DXMOSAIC_HACK \
-DDIRECT_WAIS \
-DSECURE_SERVER \
-DRELEVANCE_FEEDBACK
OBJS = HTDaemonDIR.o HTRetrieve.o HTSInit.o
LIBS = libwww.a libclient.a libwais.a
SYSLIBS = -lsocket -lmalloc -lm
NormalProgramTarget(waisgate,$(OBJS),$(LIBS),$(LIBS),$(SYSLIBS))
WWWSRCS=HTAccess.c HTAlert.c HTAnchor.c HTAtom.c HTChunk.c \
HTFTP.c HTFWriter.c HTFile.c HTFormat.c HTGopher.c HTHistory.c \
HTInit.c HTList.c HTMIME.c HTMLDTD.c HTMLGen.c HTNews.c \
HTParse.c HTPlain.c HTRules.c HTString.c HTStyle.c HTTCP.c \
HTTP.c HTTelnet.c HTWSRC.c HTWriter.c SGML.c HTWAIS.c
WWWOBJS=$(WWWSRCS:.c=.o)
NormalLibraryTarget(www,$(WWWOBJS))
NormalLibraryObjectRule()
NormalLibraryTarget(client,ui.o)
PROTOCOL_OBJS = cutil.o futil.o ircfiles.o irfileio.o irfiles.o panic.o \
sockets.o transprt.o ustubs.o wmessage.o wprot.o wutil.o \
zprot.o zutil.o ztype1.o docid.o list.o lock.o
NormalLibraryTarget(wais,$(PROTOCOL_OBJS))
SpecialObjectRule(HTRetrieve.o,HTRetrieve.c,-DRULES)
LinkFile(HTDaemonDIR.c,HTDaemon.c)
SpecialObjectRule(HTDaemonDIR.o,HTDaemonDIR.c,-DRULES -DDIR_OPTIONS)
install:: httpd
strip httpd && mcs -d httpd
InstallProgram(httpd,$(LOCALETC))
InstallNonExecFile(httpd.conf,$(LOCALETC))
InstallNonExecFile(index.html,/usr/local/http)
PERMS = /tmp/perms
TMP = /tmp
InstallMultipleDest(install perms,http prep.http,$(PERMS))
InstallMultipleDest(install perms,init.http,$(TMP))
/* wais server (allows you to export databases )
* databases could be any thing, mail folders, bug reports, etc...
SERVER_OBJ = server.o
SLIBS = $(LIBS)
_NormalProgramTarget_(waisserver,$(SERVER_OBJ),$(LIBS),$(LIBS),$(SYSLIBS))
*/
clean::
rm -f *.Z
/* make a custom install able floppy */
custom ::
-mkdir ./cut ./misc
rm -rf ./dist; mkdir ./dist
make install DESTDIR=./dist
custom cuts :: dist site_variables
rm -f mkcuts.out
DEVICE=/dev/rfd096ds15 VOLSIZE=1200k \
mkcuts -i -s 2>&1 |tee mkcuts.out
/* make a tar distribution
* no install help...
*/
custom tar-dist :: ./dist/$(LOCALETC)/httpd
rm -rf httpd.tar httpd.tar.Z
( cd ./dist; tar cvf ../httpd.tar .)
compress httpd.tar
/* make a src tape ... no help at all */
custom tar-src httpd-src.tar ::
rm -rf httpd-src.tar httpd-src.tar.Z
tar cvf httpd-src.tar Imakefile *.c *.h README http site_variables \
prep.http init.http index.html httpd.conf
compress httpd-src.tar
DependTarget()